<template>
  <div class="navBar">
    <van-nav-bar
      :title="newTitle"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>
import { NavBar } from 'vant'
export default {
  name: 'navBar',
  components: {
    VanNavBar: NavBar
  },
  props: {
    newTitle: {
      type: String
    }
  },
  data () {
    return {}
  },
  methods: {
    onClickLeft () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
